WTL Controls
|
Back to the WTL Controls Home Page. |
A CToolTipCtrl descendant providing a couple added member functions making it easier and more convenient to use. More...
#include <ToolTipPlus.h>
Public Member Functions | |
CToolTipPlus () noexcept | |
virtual | ~CToolTipPlus () |
BOOL | AddWindowTool (HWND pWnd, LPCTSTR pszText) |
Add a tooltip to a child window control. More... | |
BOOL | AddRectTool (HWND pWnd, LPCTSTR pszText, LPCRECT pRect, UINT nIDTool) |
Add a tooltip to an arbitrary rectangular region. More... | |
A CToolTipCtrl descendant providing a couple added member functions making it easier and more convenient to use.
Credit where it's due - as I recall, this code is originally from Jeff Prosize's 'Programming Windows with MFC'.
Typical usage is depicted below.
Definition at line 39 of file ToolTipPlus.h.
|
noexcept |
Definition at line 20 of file ToolTipPlus.cpp.
|
virtual |
Definition at line 24 of file ToolTipPlus.cpp.
BOOL BIS_WTL_CONTROLS::CToolTipPlus::AddWindowTool | ( | HWND | hWnd, |
LPCTSTR | pszText | ||
) |
Add a tooltip to a child window control.
hWnd | The window handle of the control you are adding a tooltip for. |
pszText | The text to add to the tooltip. |
BOOL | CToolTipPlus::AddWindowTool |
Definition at line 39 of file ToolTipPlus.cpp.
BOOL BIS_WTL_CONTROLS::CToolTipPlus::AddRectTool | ( | HWND | hWnd, |
LPCTSTR | pszText, | ||
LPCRECT | lpRect, | ||
UINT | nIDTool | ||
) |
Add a tooltip to an arbitrary rectangular region.
hWnd | The handle of the window to which you're adding a tooltip. |
pszText | The tooltip text. |
lpRect | The rectangle where the tip will be triggered. |
nIDTool | Arbitrary ID for this tooltip. |
BOOL | CToolTipPlus::AddRectTool |
Definition at line 65 of file ToolTipPlus.cpp.